package org.dromara.iot.service;

import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.iot.domain.bo.IotUpkeepRecordBo;
import org.dromara.iot.domain.vo.IotUpkeepRecordVo;

import java.util.Collection;
import java.util.List;

/**
 * 电梯保养记录Service接口
 *
 * @author lsl
 * @date 2024-06-14
 */
public interface IIotUpkeepRecordService {

    /**
     * 查询电梯保养记录
     */
    IotUpkeepRecordVo queryById(Long recordId);

    /**
     * 查询电梯保养记录列表
     */
    TableDataInfo<IotUpkeepRecordVo> queryPageList(IotUpkeepRecordBo bo, PageQuery pageQuery);

    /**
     * 查询电梯保养记录列表
     */
    List<IotUpkeepRecordVo> queryList(IotUpkeepRecordBo bo);

    /**
     * 新增电梯保养记录
     */
    Boolean insertByBo(IotUpkeepRecordBo bo);

    /**
     * 修改电梯保养记录
     */
    Boolean updateByBo(IotUpkeepRecordBo bo);

    /**
     * 校验并批量删除电梯保养记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 根据保养ID查询保养记录
     *
     * @param upkeepId 保养ID
     * @return 保养记录
     */
    List<IotUpkeepRecordVo> queryListByUpkeepId(Long upkeepId);

    /**
     * 查询当前审核人记录
     *
     * @param upkeepId
     * @param auditUserId
     * @return
     */
    IotUpkeepRecordVo selectAuditUserRecord(Long upkeepId, Long auditUserId);
}
